package com.example.designPattern.bridge;

/**
 * 手机
 *
 * 起桥接作用
 */
public abstract class Phone {
    //手机品牌
    private Brand brand;

    public Phone(Brand brand){
        this.brand = brand;
    }

    //手机功能
    public  void open(){
        this.brand.open();
    }

    public  void close(){
        brand.close();
    }

    public  void call(){
        brand.call();
    }
}
